package errors;

/**eccezione lanciata se una qualsiasi factory all'interno del progetto fallisce a causa della non riuscita creazione di
 * un particolare suo product
 * 
 * @author koldar
 * @version 1.0
 */
public class FactoryFailureException extends Exception{

	private static final long serialVersionUID = -8981685731846583805L;
	
	public FactoryFailureException(Object factory,Object product){
		super("the \""+factory.getClass().getSimpleName()+"\" has failed to product a \""+product.getClass().getSimpleName()+"\".");
	}
	
	public FactoryFailureException(Class factory,Class product){
		super("the \""+factory.getSimpleName()+"\" has failed to product a \""+product.getSimpleName()+"\".");
	}

}
